#include "Link_List.h"

int main(int argc, char const *argv[])
{

    Element_data data[20] =
        {
            {.name = "刘备", .sex = "男", .grade = 60, .age = 18, .id = 1},
            {.name = "关羽", .sex = "男", .grade = 60, .age = 18, .id = 2},
            {.name = "张飞", .sex = "男", .grade = 60, .age = 18, .id = 3},
            {.name = "诸葛", .sex = "男", .grade = 60, .age = 18, .id = 4},
            {.name = "赵云", .sex = "男", .grade = 60, .age = 18, .id = 5},
            {.name = "马超", .sex = "男", .grade = 60, .age = 18, .id = 6},
            {.name = "祝融", .sex = "女", .grade = 60, .age = 18, .id = 7},
            {.name = "小乔", .sex = "女", .grade = 60, .age = 18, .id = 8},
            {.name = "大乔", .sex = "女", .grade = 60, .age = 18, .id = 9},
            {.name = "貂蝉", .sex = "女", .grade = 60, .age = 18, .id = 10}};

    Head_Node * Head_List = Init_Link_List(); // 初始化链表

    tail_insert_list(Head_List, data[0]); // 末尾插入
    tail_insert_list(Head_List, data[1]); // 末尾插入
    tail_insert_list(Head_List, data[2]); // 末尾插入

    
    printf_Link_List(Head_List); // 遍历

    // tail_del_list(&Head_List);//末尾删除
    // printf_Link_List(Head_List); // 遍历

    Free_Link_List(&Head_List); // 销毁链表
    return 0;
}
